<script language='JavaScript'>
function goShow() {
	if (document.getElementById('hideMe').style.visibility=='hidden') {
	  document.getElementById('hideMe').style.visibility='visible';
	  document.getElementById('hideMe').style.height='80px';
	  document.getElementById('hideMeButton').style.visibility = 'hidden';
	} else {
	  document.getElementById('hideMe').style.visibility='hidden' ;
	  document.getElementById('hideMe').style.height='0';
	  document.getElementById('hideMeButton').style.visibility = 'visible';
	}
}

   
</script>
<?php
$atr = array('id' => 'formID',
	'class' => 'formular');
$tanggal = date('Y-m-d');
?> 
<div class="isi">
 <table id="laporan" class="display"  >
  <tr>
	<td>
	 <ul >
	  <li  style="list-style:none;display:inline">
	    <?php echo form_open_multipart('admin_dailytrans/todayPrice', $atr); ?>
		<input type="button" class="button" value="Update Today Price" onClick="goShow()"/>
		 <div id="hideMe" style="visibility:hidden;height:0;"> <h3> Choose Date Period </h3>
		 <div class="mylabel" style="display:inline-block;">Date </div>
		  <input type="text" id="dateForMe" class="validate[required,custom[date]] text-input hasDatepicker" onBlur="$(this).closest('form').submit();" value='<?php print ($tanggal) ?>' name="dateForMe"/>  		
		 </div>
	  </li>
	  <li  style="list-style:none;display:inline"> 
		<br />
	    <?php echo anchor("admin_dailytrans/showAll", "Show Today's Profile", "class='button' style='color:#f5f5f5' id='hideMeButton'" ) ?> 
	  </li>
	  <br />
	 </ul>
	</td>
  </tr>
 </table>
 <div class="clear"></div>
</div>